package com.lanhai.mind.enums;
 

/**
 * 工序选择策略
 * @author zhengwei
 *
 */
public enum StepSelectPolicyEnum {
	Weight(0),
	Num(1),
	WeightAndNum(2); 
	
	StepSelectPolicyEnum(int i) { 
		type=i;
	}
	
	private int type;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	public static StepSelectPolicyEnum getSelectTypeEnum(int b) {
		StepSelectPolicyEnum as = null;
    	switch (b) {
    	case 1:
    		as=StepSelectPolicyEnum.Num;
    		break; 
    	case 2:
    		as=StepSelectPolicyEnum.WeightAndNum;
    		break; 
    	default:
    		as=StepSelectPolicyEnum.Weight;
    	}
    	 
    	return as;
	}
}